﻿using CarAppDomain.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarAppDomain.CarParts.Entities
{
    [SugarTable("car_parts", TableDescription = "配件")]
    public class CarPartsEntity: BaseEntity
    {
        /// <summary>
        /// 所属品牌代码
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = false, ColumnDescription = "所属品牌代码")]
        public string? BrandId { get; set; }

        /// <summary>
        /// 所属车型代码（车系ID）
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = false, ColumnDescription = "所属车型代码")]
        public string? VehicleSeriesId { get; set; }
        /// <summary>
        /// 配件类型
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = false, ColumnDescription = "配件类型")]
        public string? CarPartsTypeId { get; set; }
        /// <summary>
        /// 配件中文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = false, ColumnDescription = "配件中文名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 配件英文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = true, ColumnDescription = "配件英文名称")]
        public string? EnglishName { get; set; }

        /// <summary>
        /// 配件名称代码
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 20, IsNullable = false, ColumnDescription = "配件名称代码")]
        public string? Code { get; set; }

        /// <summary>
        /// 起始时间
        /// </summary>
        [SugarColumn(ColumnDataType = "datetime", IsNullable = true, ColumnDescription = "起始时间")]
        public DateTime? StartingDate { get; set; }

        /// <summary>
        ///截至时间
        /// </summary>
        [SugarColumn(ColumnDataType = "datetime", IsNullable = true, ColumnDescription = "截至时间")]
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 图片路径
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 2048, IsNullable = true, ColumnDescription = "图片路径")]
        public string? Image { get; set; }

        /// <summary>
        /// 自定义字段1
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段1")]
        public string? CustomFields1 { get; set; }

        /// <summary>
        /// 自定义字段2
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段2")]
        public string? CustomFields2 { get; set; }

        /// <summary>
        /// 自定义字段3
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段3")]
        public string? CustomFields3 { get; set; }

        /// <summary>
        /// 自定义字段4
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段4")]
        public string? CustomFields4{ get; set; }

        /// <summary>
        /// 自定义字段5
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段5")]
        public string? CustomFields5 { get; set; }

        /// <summary>
        /// 自定义字段6
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段6")]
        public string? CustomFields6 { get; set; }

        /// <summary>
        /// 自定义字段7
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段7")]
        public string? CustomFields7 { get; set; }

        /// <summary>
        /// 自定义字段8
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段8")]
        public string? CustomFields8 { get; set; }

        /// <summary>
        /// 自定义字段9
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段9")]
        public string? CustomFields9 { get; set; }

        /// <summary>
        /// 自定义字段10
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 254, IsNullable = true, ColumnDescription = "自定义字段10")]
        public string? CustomFields10 { get; set; }

        ///// <summary>
        ///// 配件类型名称
        ///// </summary>
        //public string? CarPartsTypeEntityName { get; set; }

    }
}
